/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import type { AliappListItemType } from '@/components/_pages/mini/aliapp/_utils/useMiniAliappTable';
import { useSetState } from 'ahooks';

interface IndexType {
  view?: string;
  info?: AliappListItemType;
  activeKey: string;
}

export default () => {
  const [pageData, setPageData] = useSetState<IndexType>({
    activeKey: '1',
  });

  return {
    ...pageData,
    setPageData,
  };
};
